#ifndef _RAMBLK_H
#define _RAMBLK_H
#include "fblock.h"
#include <iostream>
#include <time.h>
using namespace std;

class RamBlock : public Block
{
private:
    int status;
    bool edited;
    time_t last;
    time_t initTime;

public:
    RamBlock() : status(0), edited(false), initTime(clock()) {}
    void printBlockStatus()
    {
        cout << "*****Block id:" << id << endl;
        cout << "*****Edited:" << edited << endl;
        cout << "*****Last visit:" << last << endl;
        cout << "Init Time:" << initTime << endl;
    }
    bool Edited()
    {
        return edited;
    }
    void editChange()
    {
        cout << "Block " << id << " edited." << endl;
        edited = true;
    }
};

#endif